package com.gitee.simons.oauth.mapper;

import com.gitee.simons.oauth.entity.po.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author simons
 * @since 2020-07-07
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 根绝用户名获取角色id
     * @param username
     * @return
     */
    List<String> getRoleCodesByUsername(@Param("username") String username);
}
